package com.example.capsule_netty.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.capsule_netty.bean.RoomBean;
import org.apache.ibatis.annotations.Select;
import java.util.List;

/**
 * @Author: zhuzhiming
 * @Date: 2022/5/2 0:18
 */
public interface RoomMapper extends BaseMapper<RoomBean> {

    @Select("select * from room where field = #{field} and secret_level = 0")
    List<RoomBean> getRoomListByField(String field);

}
